﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfMessage.aspx.cs" Inherits="msBsc.WebUi.wMall.Seller.wfMessage" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>地接客_消息列表</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/usermenu.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/from.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/pagination.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/orderlist.css" rel="stylesheet" />
    <link href="/jqPlugin/layer/skin/layer.css" rel="stylesheet" />
    <style type="text/css">
        .msgList {
            margin-left: 5px;
        }

            .msgList li {
                background-color: #f5f8fa;
                border: 1px solid #dee5ea;
                margin-bottom: 12px;
            }

        .msg_title {
            color: #ff6a00;
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 5px;
            padding-left: 10px;
        }

        .msg_content {
            font-size: 15px;
            margin-left: 10px;
            padding-bottom: 5px;
        }

        .duqu_color {
            color: #bebebe;
        }
    </style>
</head>
<body>
    <div class="wf_all">
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="main-container">
            <div class="sidebar-scroll noborder">
                <%=msBsc.WebUi.Code.QtHtmlGet.GetDjackMenuHtml() %>
            </div>
            <div class="main-Info">
                <div class="tnavigation">
                    <a class="nav" href="#">首页</a>&gt;
				<a class="nav" href="#">订单管理</a>&gt;
				<a class="nav-on" href="#">我的消息</a>
                </div>
                <div id="messageList">
                    <p style="width: 200px; margin-left: 30px;" class="car-price">没有任何消息...</p>
                </div>
                <xmp id="svc_list_temp_msg" style="display: none">
                    <ul class="msgList">
                    {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                        <li >
                            <a class="msg_title {{getSink(d.rows[i].ISREAD)}}" id="{{d.rows[i].MESSAGE_ID}}"  onclick="show(this);" status="{{d.rows[i].ISREAD}}">{{d.rows[i].MESSAGE_TITLE}}</a>
                            <p class="msg_content hideview">{{d.rows[i].MESSAGE_CONTENT}}</p>
                        </li>
                    {{#} }}
                   </ul>
                </xmp>

                <div id="divPage"></div>
            </div>
        </div>

        <%--chat--%>
        <script src="/themes/wStyle1/js/Chat/lib.js"></script>
        <script src="/themes/wStyle1/js/Chat/layim.js"></script>

        <!--start JS引用-->
        <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
        <script src="/jqPlugin/js/jQueryForm.js"></script>
        <script src="/jqPlugin/js/jBase.js"></script>
        <script src="/jqPlugin/js/jBPage.js"></script>
        <script src="/themes/wStyle1/js/comm/jsPagination.js"></script>
        <script src="/jqPlugin/layer/layer.min.js"></script>
        <script src="/jqPlugin/js/laytpl.js"></script>

        <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
        <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
        <!--end JS引用-->
        <script type="text/javascript">
            var pIndex = 1;
            function btnDo(sEbtn) {
                GtGrid1Action = sEbtn;
                var opart = GetGtParam();
                ajaxComm(opart);
            };

            function show(t) {
                //效果
                $(t).next().slideToggle("fast", function () {
                    if ($(t).attr("status") =="0") {
                        //修改 已读取
                        $(t).addClass("duqu_color");
                        //提交 服务器
                        var _jsParam = new jsonRow();
                        _jsParam.AddCell("msgid", $(t).attr("id"));
                        _jsParam.AddCell("ACTION", 'up');
                        ajaxComm(_jsParam);
                    }
                });
            }

            function getSink(status) {
                return status != "0" ? "duqu_color" : "";
            }

            //执行AJAX调用时获取参数
            function GetGtParam() {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("pIndex", pIndex);
                _jsParam.AddCell("ACTION", GtGrid1Action);
                return _jsParam;
            };
            btnDo("init");
            function goPage(Index) {
                pIndex = Index;
                btnDo("init");
            }
        </script>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
</body>
</html>
